.class Lcom/waiqin365/lightapp/deptmanager/u;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method public constructor <init>(Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/u;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 7

    const/4 v6, 0x1

    const/4 v4, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/u;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;

    if-nez v1, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {v1}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->dismissProgressDialog()V

    iget v0, p1, Landroid/os/Message;->what:I

    sparse-switch v0, :sswitch_data_0

    goto :goto_0

    :sswitch_0
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/b/a/t;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/deptmanager/b/a/t;->b()Z

    move-result v2

    if-eqz v2, :cond_3

    const-string/jumbo v2, "1"

    iget-object v3, v0, Lcom/waiqin365/lightapp/deptmanager/b/a/t;->d:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_3

    invoke-static {v1}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->c(Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;)Lcom/waiqin365/lightapp/deptmanager/c/b;

    move-result-object v2

    iget-object v3, v0, Lcom/waiqin365/lightapp/deptmanager/b/a/t;->f:Ljava/lang/String;

    iput-object v3, v2, Lcom/waiqin365/lightapp/deptmanager/c/b;->a:Ljava/lang/String;

    iget-object v0, v0, Lcom/waiqin365/lightapp/deptmanager/b/a/t;->g:Ljava/lang/String;

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->a(Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;Ljava/lang/String;)V

    goto :goto_0

    :sswitch_1
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/b/a/p;

    iget-object v2, v0, Lcom/waiqin365/lightapp/deptmanager/b/a/p;->f:Ljava/util/List;

    if-eqz v2, :cond_0

    iget-object v2, v0, Lcom/waiqin365/lightapp/deptmanager/b/a/p;->f:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    if-lez v2, :cond_0

    move v3, v4

    :goto_1
    iget-object v2, v0, Lcom/waiqin365/lightapp/deptmanager/b/a/p;->f:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    if-ge v3, v2, :cond_0

    iget-object v2, v0, Lcom/waiqin365/lightapp/deptmanager/b/a/p;->f:Ljava/util/List;

    invoke-interface {v2, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/waiqin365/lightapp/deptmanager/c/e;

    iget-object v5, v0, Lcom/waiqin365/lightapp/deptmanager/b/a/p;->f:Ljava/util/List;

    invoke-interface {v5}, Ljava/util/List;->size()I

    move-result v5

    add-int/lit8 v5, v5, -0x1

    if-ne v5, v3, :cond_2

    move v5, v4

    :goto_2
    invoke-virtual {v1, v2, v5}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->a(Lcom/waiqin365/lightapp/deptmanager/c/e;Z)V

    add-int/lit8 v2, v3, 0x1

    move v3, v2

    goto :goto_1

    :cond_2
    move v5, v6

    goto :goto_2

    :cond_3
    iget-object v2, v0, Lcom/waiqin365/lightapp/deptmanager/b/a/t;->e:Ljava/lang/String;

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_4

    iget v0, v0, Lcom/waiqin365/lightapp/deptmanager/b/a/t;->a:I

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    goto :goto_0

    :cond_4
    invoke-static {v1, v2, v4}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_0

    :sswitch_2
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/b/a/n;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/deptmanager/b/a/n;->b()Z

    move-result v2

    if-eqz v2, :cond_6

    const-string/jumbo v2, "1"

    iget-object v3, v0, Lcom/waiqin365/lightapp/deptmanager/b/a/n;->d:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_6

    invoke-static {v1}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->c(Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;)Lcom/waiqin365/lightapp/deptmanager/c/b;

    move-result-object v0

    invoke-static {v1}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->c(Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;)Lcom/waiqin365/lightapp/deptmanager/c/b;

    move-result-object v2

    iget-boolean v2, v2, Lcom/waiqin365/lightapp/deptmanager/c/b;->s:Z

    if-nez v2, :cond_5

    :goto_3
    iput-boolean v6, v0, Lcom/waiqin365/lightapp/deptmanager/c/b;->s:Z

    invoke-static {v1}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->k(Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;)V

    invoke-static {v1}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->l(Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;)V

    invoke-static {v1}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->m(Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;)V

    goto/16 :goto_0

    :cond_5
    move v6, v4

    goto :goto_3

    :cond_6
    iget-object v2, v0, Lcom/waiqin365/lightapp/deptmanager/b/a/n;->e:Ljava/lang/String;

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_7

    iget v0, v0, Lcom/waiqin365/lightapp/deptmanager/b/a/n;->a:I

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    goto/16 :goto_0

    :cond_7
    invoke-static {v1, v2, v4}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    :sswitch_3
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/b/a/o;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/deptmanager/b/a/o;->b()Z

    move-result v2

    if-eqz v2, :cond_8

    const-string/jumbo v2, "1"

    iget-object v3, v0, Lcom/waiqin365/lightapp/deptmanager/b/a/o;->d:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_8

    invoke-static {v1}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->c(Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;)Lcom/waiqin365/lightapp/deptmanager/c/b;

    move-result-object v0

    iget-object v0, v0, Lcom/waiqin365/lightapp/deptmanager/c/b;->a:Ljava/lang/String;

    sget-object v2, Lcom/waiqin365/lightapp/deptmanager/w;->a:Lcom/waiqin365/lightapp/deptmanager/c/a;

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/deptmanager/c/a;->a()Ljava/util/List;

    move-result-object v2

    invoke-static {v0, v2}, Lcom/waiqin365/lightapp/deptmanager/d/a;->d(Ljava/lang/String;Ljava/util/List;)V

    invoke-static {v1}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->m(Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;)V

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->finish()V

    goto/16 :goto_0

    :cond_8
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/deptmanager/b/a/o;->b()Z

    move-result v2

    if-eqz v2, :cond_9

    const-string/jumbo v2, "2"

    iget-object v3, v0, Lcom/waiqin365/lightapp/deptmanager/b/a/o;->d:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_9

    new-instance v0, Lcom/waiqin365/compons/view/c;

    const-string/jumbo v2, ""

    const-string/jumbo v3, ""

    sget v4, Lcom/waiqin365/compons/view/c;->b:I

    new-instance v5, Lcom/waiqin365/lightapp/deptmanager/v;

    invoke-direct {v5, p0}, Lcom/waiqin365/lightapp/deptmanager/v;-><init>(Lcom/waiqin365/lightapp/deptmanager/u;)V

    invoke-direct/range {v0 .. v5}, Lcom/waiqin365/compons/view/c;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;ILcom/waiqin365/compons/view/d;)V

    const v2, 0x7f080261

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/compons/view/c;->a(Ljava/lang/String;)V

    invoke-virtual {v0}, Lcom/waiqin365/compons/view/c;->show()V

    goto/16 :goto_0

    :cond_9
    iget-object v2, v0, Lcom/waiqin365/lightapp/deptmanager/b/a/o;->e:Ljava/lang/String;

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_a

    iget v0, v0, Lcom/waiqin365/lightapp/deptmanager/b/a/o;->a:I

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    goto/16 :goto_0

    :cond_a
    invoke-static {v1, v2, v4}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    :sswitch_4
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/b/a/q;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/deptmanager/b/a/q;->b()Z

    move-result v2

    if-eqz v2, :cond_d

    const-string/jumbo v2, "1"

    iget-object v3, v0, Lcom/waiqin365/lightapp/deptmanager/b/a/q;->d:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_d

    invoke-static {v1}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->c(Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;)Lcom/waiqin365/lightapp/deptmanager/c/b;

    move-result-object v0

    invoke-static {v1}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->c(Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;)Lcom/waiqin365/lightapp/deptmanager/c/b;

    move-result-object v2

    iget-boolean v2, v2, Lcom/waiqin365/lightapp/deptmanager/c/b;->s:Z

    if-nez v2, :cond_b

    :goto_4
    iput-boolean v6, v0, Lcom/waiqin365/lightapp/deptmanager/c/b;->s:Z

    const-string/jumbo v0, "1"

    invoke-static {v1}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->c(Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;)Lcom/waiqin365/lightapp/deptmanager/c/b;

    move-result-object v2

    iget-object v2, v2, Lcom/waiqin365/lightapp/deptmanager/c/b;->c:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_c

    invoke-static {v1}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->c(Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;)Lcom/waiqin365/lightapp/deptmanager/c/b;

    move-result-object v0

    const-string/jumbo v2, "2"

    iput-object v2, v0, Lcom/waiqin365/lightapp/deptmanager/c/b;->c:Ljava/lang/String;

    :goto_5
    invoke-static {v1}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->n(Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;)V

    invoke-static {v1}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->l(Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;)V

    invoke-static {v1}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->m(Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;)V

    goto/16 :goto_0

    :cond_b
    move v6, v4

    goto :goto_4

    :cond_c
    invoke-static {v1}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->c(Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;)Lcom/waiqin365/lightapp/deptmanager/c/b;

    move-result-object v0

    const-string/jumbo v2, "1"

    iput-object v2, v0, Lcom/waiqin365/lightapp/deptmanager/c/b;->c:Ljava/lang/String;

    goto :goto_5

    :cond_d
    iget-object v2, v0, Lcom/waiqin365/lightapp/deptmanager/b/a/q;->e:Ljava/lang/String;

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_e

    iget v0, v0, Lcom/waiqin365/lightapp/deptmanager/b/a/q;->a:I

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    goto/16 :goto_0

    :cond_e
    invoke-static {v1, v2, v4}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    :sswitch_5
    invoke-virtual {v1}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->dismissProgressDialog()V

    invoke-static {v1}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->b(Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;)Z

    move-result v0

    if-nez v0, :cond_f

    const v0, 0x7f08001d

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v0, v4}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    :goto_6
    invoke-static {v1}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->m(Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;)V

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->back()V

    goto/16 :goto_0

    :cond_f
    const v0, 0x7f080553

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v0, v4}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_6

    :sswitch_data_0
    .sparse-switch
        0x2 -> :sswitch_0
        0x3 -> :sswitch_2
        0x4 -> :sswitch_4
        0x8 -> :sswitch_3
        0x9 -> :sswitch_1
        0x3e8 -> :sswitch_5
    .end sparse-switch
.end method
